﻿using TianYuan.Core.Domain.Entities;
using TianYuan.Core.Validations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain
{
    public class Product : IEntity<String>, IValidate
    {
        public string Id { set; get; }
        [Required, StringLength(10)]
        public string Name { get; set; }

        public decimal Price { get; set; }
        public bool IsDelete { set; get; }
    }
}
